package com.zz.common.constants;

/**
 * @author zl
 * @version 1.0
 */
public class BaseConstant {
    // 加密盐值
    public static final String SALT = "ZLLOVEZLT@1314!@";

    // 默认密码
    public static final String DEFAULT_PASS_WORD = "111";

    public static final String YES = "1";

    public static final String NO = "0";

    public class APP_ID {
        public static final String ZZ_ADMIN = "/zz-admin";
        public static final String ZZ_COMMON = "/zz-common";
        public static final String ZZ_MESSAGE = "/zz-message";
    }

    public class IMPORT_TYPE {
        public static final String INSERT_AND_ERROR = "1";
        public static final String INSERT_AND_UPDATE = "2";
        public static final String INSERT_AND_SKIP = "3";
    }

    public class EXCEL_CELL_VALUE_TYPE {
        public static final String INT = "int";
        public static final String LONG = "long";
        public static final String DECIMAL = "decimal";
        public static final String STR = "str";
        public static final String DATE = "date";
        public static final String TIME = "time";
        public static final String DATETIME = "datetime";
    }

    /**
     * 日志类型
     */
    public class LOG_TYPE {
        public static final String INFO = "INFO";
        public static final String ERROR = "ERROR";
    }

    public class PERMS_TYPE {
        public static final String ALL = "1";
        public static final String COMPANY = "2";
        public static final String DEPARTMENT = "3";
        public static final String CUSTOM = "4";
    }

    public class ORG_TYPE {
        public static final String COMPANY = "1";
        public static final String DEPARTMENT = "2";
    }

    /**
     * 常用接口
     */
    public static class Url {
        // IP归属地查询
        public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp?ip=%s&json=true";
    }
}
